package net.sahv.bdyz.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import net.sahv.bdyz.util.VerifyCode;

/**
 * 验证信息
 * @author Administrator
 *
 */
@Controller
@RequestMapping("verifyCode")
public class VerifyCodeController {

	/**
	 * 获取验证码
	 * @param req
	 * @param resp
	 * @return
	 * @throws ServletException
	 * @throws IOException
	 */
	@RequestMapping(value = "/verifyCode", method = RequestMethod.GET)
	public String getVerifyCode(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException{
		VerifyCode vc=new VerifyCode();
		vc.getVerifyCode(req, resp);
		return null;
	}
	
}